package com.gopay.common.domain.user;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/**
 * 用户设备绑定关系,设备准入失效时间
 * @CustDeviceBindRel.java
 * @author lizheng
 * @2015-1-13 上午9:01:15 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CUST_DEVICE_BIND_REL")
public class CustDeviceBindRel  extends BaseEntity {

    private static final long serialVersionUID = 1206010273331371630L;
    
    private String custLoginName;
    private String deviceId;
    private Date lastUpdateTime;
    private String remark;
    private Date ExpireTime;
    @Id
    @Column(name = "DEVICE_ID", nullable = false, length = 64)
    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
    @Column(name = "EXPIRE_TIME", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getExpireTime() {
        return ExpireTime;
    }
    public void setExpireTime(Date expireTime) {
        ExpireTime = expireTime;
    }
    @Column(name = "CUST_LOGIN_NAME", nullable = false, length = 50)
    public String getCustLoginName() {
        return custLoginName;
    }

    public void setCustLoginName(String custLoginName) {
        this.custLoginName = custLoginName;
    }
    

    @Column(name = "LAST_UPDATE_TIME", nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Column(name = "REMARK",  length = 128)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
